package com.zhitong.money.services.api;


import com.github.pagehelper.PageInfo;
import com.zhitong.money.entity.CheckTime;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface ICheckService {

    public List<CheckTime> findAllCheck() throws Exception;

//    public List<CheckTime> findCheckByTid(String tid) throws Exception;

    public List<CheckTime> findCheckByMap(Map<String,Object> map) throws Exception;

    public PageInfo findAllCheckByPage(Map<String,Object> map) throws Exception;

    public CheckTime findCheckById(String id) throws Exception;

    public void addCheck(CheckTime checkTime) throws Exception;

    public void addCheck(Map<String,Object> map) throws Exception;

    public void updateCheck(CheckTime checkTime) throws Exception;

    public void delCheck(String id) throws Exception;

    public void delCheckByIds(List<String> ids) throws Exception;

    public void exportChecks(Map<String,Object> map, HttpServletResponse response) throws Exception;

    public String lateForMonth(String tid, int year,int m) throws Exception;

    public String earlyForMonth(String tid, int year,int m) throws Exception;

    public double absenceForMonth(String tid, int year,int m)throws Exception;

    public double leaveForMonth(String tid,int year,int m) throws Exception;



}
